package com.bootdo.storageRack.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.storageRack.dao.StorageRackDao;
import com.bootdo.storageRack.domain.StorageRackDO;
import com.bootdo.storageRack.service.StorageRackService;
import org.springframework.transaction.annotation.Transactional;



@Service
@Transactional
public class StorageRackServiceImpl implements StorageRackService {
	@Autowired
	private StorageRackDao storageRackDao;
	
	@Override
	public StorageRackDO get(Long id){
		return storageRackDao.get(id);
	}
	
	@Override
	public List<StorageRackDO> list(Map<String, Object> map){
		return storageRackDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return storageRackDao.count(map);
	}
	
	@Override
	public int save(StorageRackDO storageRack){
		return storageRackDao.save(storageRack);
	}
	
	@Override
	public int update(StorageRackDO storageRack){
		return storageRackDao.update(storageRack);
	}
	
	@Override
	public int remove(Long id){
		return storageRackDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return storageRackDao.batchRemove(ids);
	}
	
}
